package com.huaxin.hxmoduleworkorder.common.annotation.validation;

import com.huaxin.hxmoduleworkorder.common.validator.OrderNotificationRecipientRoleValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = OrderNotificationRecipientRoleValidator.class)
@Documented
public @interface ValidOrderNotificationRecipientRole {
    String message() default "无效的工单通知接收人角色，允许值: electrician/admin/customer";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}